package demo8;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

public class java008 {
	public static void main(String[] args) throws InterruptedException {
		Thread[] list=new Thread[10];
		for(int i=0;i<10;i++){
			list[i]=new Add(10*i+1);
			list[i].start();
		}
		for(int i=0;i<10;i++){
			list[i].join();
		}
		System.out.print(Add.sum);
	}
}
